<template>
  <div class='container'>
        <div class='app-row m-20-t'>
          <span class="title bold width-120">门店id:</span>
          <span class='flex-1'>{{shop_id_value}}</span>
        </div>
        <div class='app-row m-20-t'>
          <span class="title bold width-120">余额:</span>
          <span class='flex-1'>{{balance_value}}</span>
        </div>
        <div class='app-row m-20-t'>
          <span class="title bold width-120">佣金:</span>
          <span class='flex-1'>{{commission_value}}</span>
        </div>
        <div class='app-row m-20-t'>
          <span class="title bold width-120">门店积分:</span>
          <span class='flex-1'>{{detail_data.point}}</span>
        </div>
        <div class='app-row m-20-t'>
          <span class="title bold width-120">冻结佣金:</span>
          <span class='flex-1'>{{commission_wait_value}}</span>
        </div>
        <div class='app-row m-20-t'>
          <span class="title bold width-120">更新日期:</span>
          <span class='flex-1'>{{update_time_value}}</span>
        </div>





  </div>
</template>

<script>

  import shop_finance_request from "@/api/shop_finance_request"
  export default {
    name: 'shop_finance_list_edit',
    data() {
      return {
        shop_id_value: '',
        balance_value: '',
        commission_value: '',
        commission_wait_value: '',
        update_time_value: '',
        detail_data: {},
      }
    },
    created() {
      this.get_detail(this.$route.query.id)
    },
    mounted() {
  
    },
    methods: {
      get_detail(id) {
        shop_finance_request.detail_shop_finance({id}, res=> {
          let result = res.data
          this.shop_id_value = result.id
          this.commission_value = result.commission
          this.commission_wait_value = result.commission_wait
          this.balance_value = result.balance
          this.update_time_value = result.update_time
          this.detail_data = result
        })
      },



      handleClick(tab, event) {
        
      },

    }
  }
</script>

<style scoped>
@import "~@/styles/layout.scss";
</style>